
<div class="my-info">
    <div class="avatar"><img src="<?php echo session('avatar')?session('avatar'):'__UPLOAD_PATH__/shop/common/default_user_portrait.gif';?>" /><a href="<?php echo url('member/information/avatar');?>" title="修改头像">修改头像</a></div>
    <dl>
        <dt>
        <h2><a href="<?php echo url('circle/pcenter/index');?>" target="_blank"><?php echo session('member_name');?></a></h2>
        </dt>
        <dd><span>话题：<em>(<b><?php echo $cm_info['cm_thcount'];?></b>)</em></span><span>回复：<em>(<b><?php echo $cm_info['cm_comcount'];?></b>)</em></span></dd>
    </dl>
</div>
<div class="side-tab-nav">
    <ul class="tabs-nav">
        <li class="tabs-selected"><a href="javascript:void(0)">我的圈子</a></li>
        <li><a href="javascript:void(0)">管理</a></li>
    </ul>
    <div class="my-circle-list tabs-panel">
        <?php if (!empty($circle_array)){?>
        <?php foreach (($circle_array) as $val){?>
        <dl <?php if($val['is_identity'] == 3){?>nctype="member"<?php }?>>
        <dt class="name"><a href="<?php echo url('circle/group/index');?>?c_id=<?php echo $val['circle_id'];?>" title="<?php echo $val['circle_name'];?>" ><?php echo $val['circle_name'];?></a></dt>
        <dd class="pic"><span class="thumb size50"><i></i><a href="javascript:void(0);"><img src="<?php echo circleLogo($val['circle_id']);?>" /></a></span></dd>
        <dd class="createtime">创建于<em class="ml5"><?php echo @date('Y-m-d', $val['circle_addtime']);?></em></dd>
        <dd class="number"><em><?php echo $val['circle_mcount'];?></em>个成员</dd>
        </dl>
        <?php }?>
        <?php }?>
    </div>
</div>
<script>
    $(function() {
        $(".tabs-nav > li > a").click(function(e) {
            $(".tabs-nav > li > a").parent().removeClass('tabs-selected');
            var parent = $(this).parent();
            parent.addClass('tabs-selected');
            if($(".tabs-nav > li").eq(1).hasClass('tabs-selected')){
                $('[nctype="member"]').hide();
            }else{
                $('[nctype="member"]').show();
            }
        });
    });
</script>